package com.bci.pwtz.task.thread;

import com.bci.pwtz.common.PwtzConstants;
import com.bci.pwtz.common.util.SpringUtil;
import com.bci.pwtz.service.CompanyUserAuditService;

public class ClearAuditThread extends BaseThread
{
    public ClearAuditThread()
    {
        interval = PwtzConstants.CLEAR_AUDIT_INTERVAL * 60;
        threadName = "清理过期加入公司申请数据任务";
    }
    
    @Override
    public void doWork() throws Exception
    {
        CompanyUserAuditService companyUserAuditService = (CompanyUserAuditService)SpringUtil.getBean("companyUserAuditService");
        companyUserAuditService.updateExpireStatus(PwtzConstants.AUDIT_VALID);
    }
}
